package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("shop_line")
public class ShopLineDO {
    private Long shopId;
    @TableField("`index`")
    private Integer index;
    private String barCode;
    private Long orderNumber;
    private Long shelfId;
    @TableField("`count`")
    private Integer count;
    private BigDecimal dealPrice; // 成交价（单价）
    private BigDecimal originalPrice; // 原价
    private BigDecimal specialPrice; // 特价
    private Boolean useSpecialPrice; // 是否享受特价

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public Long getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Long orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Long getShelfId() {
        return shelfId;
    }

    public void setShelfId(Long shelfId) {
        this.shelfId = shelfId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public BigDecimal getDealPrice() {
        return dealPrice;
    }

    public void setDealPrice(BigDecimal dealPrice) {
        this.dealPrice = dealPrice;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getSpecialPrice() {
        return specialPrice;
    }

    public void setSpecialPrice(BigDecimal specialPrice) {
        this.specialPrice = specialPrice;
    }

    public Boolean getUseSpecialPrice() {
        return useSpecialPrice;
    }

    public void setUseSpecialPrice(Boolean useSpecialPrice) {
        this.useSpecialPrice = useSpecialPrice;
    }

    @Override
    public String toString() {
        return "ShopLineDO{" +
                "shopId=" + shopId +
                ", index=" + index +
                ", barCode='" + barCode + '\'' +
                ", orderNumber=" + orderNumber +
                ", shelfId=" + shelfId +
                ", count=" + count +
                ", dealPrice=" + dealPrice +
                ", originalPrice=" + originalPrice +
                ", specialPrice=" + specialPrice +
                ", useSpecialPrice=" + useSpecialPrice +
                '}';
    }
}
